package com.py.comment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.py.model.common.dtos.ResponseResult;
import com.py.model.moment.dtos.CommentReplyDto;
import com.py.model.moment.dtos.CommentReplyLikeDto;
import com.py.model.moment.dtos.CommentReplySaveDto;
import com.py.model.moment.pojos.Reply;

/**
 * @author pengy
 * @create 2022-11-17 17:40
 */
public interface CommentReplyService extends IService<Reply> {

    /**
     * 保存回复评论的到mongoDB
     * @param replySaveDto
     * @return
     */
    void saveReply(CommentReplySaveDto replySaveDto);

    /**
     * 加载回复评论列表 分页展示
     * @param commentReplyDto
     * @return
     */
    ResponseResult loadPage(CommentReplyDto commentReplyDto);

    /**
     * 回复评论的评论点赞或取消点赞
     * @param replyLikeDto
     * @return
     */
    ResponseResult like(CommentReplyLikeDto replyLikeDto);
}
